import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {ListComponent} from "./list/list.component";
import {AddInfoComponent} from "./add-info/add-info.component";
import {UpdateInfoComponent} from "./update-info/update-info.component";
import {AppComponent} from "./app.component";

const routes: Routes = [
  {path: 'list', component: ListComponent},
  {path: 'add-list', component: AddInfoComponent},
  {path: 'update-list', component: UpdateInfoComponent},
  {path: '', component: ListComponent, pathMatch: 'full'},
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule {
}
